<template>
  <div style="margin-top:20px">
    <el-form ref="form" label-width="80px" :model="form">
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="UUID" style="margin-right:15px">
              <el-input v-model="form.code" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="用户编码" style="margin-right:15px">
              <el-input v-model="form.partyCode" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="机构编码" style="margin-right:15px">
              <el-input v-model="form.branchCode" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="驾驶车辆编码" style="margin-right:15px">
              <el-input v-model="form.vehicleCode" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="省编码" style="margin-right:15px">
              <el-input v-model="form.provinceCode" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="市编码" style="margin-right:15px">
              <el-input v-model="form.cityCode" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="县/区编码" style="margin-right:15px">
              <el-input v-model="form.countyCode" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="车队名称" style="margin-right:15px">
              <el-input v-model="form.linkMan" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="姓名" style="margin-right:15px">
              <el-input v-model="form.name" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="手机" style="margin-right:15px">
              <el-input v-model="form.phone" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="法人姓名" style="margin-right:15px">
              <el-input v-model="form.legalPerson" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="工作单位" style="margin-right:15px">
              <el-input v-model="form.workCompany" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="司机城市代码" style="margin-right:15px">
              <el-input v-model="form.driverCity" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="地址" style="margin-right:15px">
              <el-input v-model="form.homeAddress" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="司机照片" style="margin-right:15px">
              <el-input v-model="form.driverImg" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="身份证号" style="margin-right:15px">
              <el-input v-model="form.identificationNumber" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="司机身份证，多张时用逗号分隔。" style="margin-right:15px">
              <el-input v-model="form.identificationImg" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="司机身份证反面照片" style="margin-right:15px">
              <el-input v-model="form.identificationBackImg" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="上岗证（从业资格证）" style="margin-right:15px">
              <el-input v-model="form.workLicense" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="从业资格证到期日期" style="margin-right:15px">
              <el-input v-model="form.workLicenseDueDate" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="从业资格证照片" style="margin-right:15px">
              <el-input v-model="form.workLicenseImg" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item
              label="准驾车型，使用总质量 4.5 吨及以下普通货运车辆从事普通货物运输经营的驾驶员必填，根据机
动车驾驶证填写"
              style="margin-right:15px"
            >
              <el-input v-model="form.vehicleClass" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="驾驶证" style="margin-right:15px">
              <el-input v-model="form.driverLicense" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item
              label="驾驶证发证机关，使用总质量 4.5 吨及以下普通货运车辆从事普通货物运输经营的驾驶员必填，根据机
动车驾驶证填写。"
              style="margin-right:15px"
            >
              <el-input v-model="form.issuingOrganizations" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="司机驾驶证开始日期" style="margin-right:15px">
              <el-input v-model="form.driverLicenseFromDate" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="司机驾驶证到期日期" style="margin-right:15px">
              <el-input v-model="form.driverLicenseDueDate" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="司机驾驶证图片" style="margin-right:15px">
              <el-input v-model="form.driverLicenseImg" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="营业执照号" style="margin-right:15px">
              <el-input v-model="form.businessLicenseNumber" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="营业执照照片" style="margin-right:15px">
              <el-input v-model="form.businessLicenseImg" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="道路经营许可证" style="margin-right:15px">
              <el-input v-model="form.roadPermitNumber" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="道路经营许可证照片" style="margin-right:15px">
              <el-input v-model="form.roadPermitNumberImg" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="是否冻结（0-未冻结  1-已冻结）" style="margin-right:15px">
              <el-input v-model="form.isFreeze" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="司机工作状态  0 休息 1 上班 " style="margin-right:15px">
              <el-input v-model="form.workStatus" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="冻结金额" style="margin-right:15px">
              <el-input v-model="form.freezingAmount" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="账户余额" style="margin-right:15px">
              <el-input v-model="form.balance" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="油卡点数" style="margin-right:15px">
              <el-input v-model="form.oilCard" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="etc" style="margin-right:15px">
              <el-input v-model="form.etc" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="审核状态：0未审核/1审核中/2审核未通过/3审核通过" style="margin-right:15px">
              <el-input v-model="form.authStatus" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="审核来源：0手动审核,1自动审核" style="margin-right:15px">
              <el-input v-model="form.authType" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="审核提示信息" style="margin-right:15px">
              <el-input v-model="form.tintMsg" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="审核时间，修改审核状态时同步修改" style="margin-right:15px">
              <el-input v-model="form.authTime" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="0司机,1车队,2-车队司机" style="margin-right:15px">
              <el-input v-model="form.driverType" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="支付密码（sha加密）" style="margin-right:15px">
              <el-input v-model="form.payPassword" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="备注" style="margin-right:15px">
              <el-input v-model="form.remark" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="找油网司机编号" style="margin-right:15px">
              <el-input v-model="form.truckerId" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="找油网油卡编号" style="margin-right:15px">
              <el-input v-model="form.cardNo" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="高德地图终端id" style="margin-right:15px">
              <el-input v-model="form.amapTid" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="grid-content bg-purple">
            <el-form-item label="高德地图轨迹id" style="margin-right:15px">
              <el-input v-model="form.amapTrid" :disabled="true" />
            </el-form-item>
          </div>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
import Vue from 'vue'
import 'xe-utils'
import VXETable from 'vxe-table'
import 'vxe-table/lib/index.css'
import request from '@/utils/request'
Vue.use(VXETable)
export default {
  name: 'DriverTeamDetail',
  data() {
    return {
      emptyForm: {},
      form: {
        code: '',
        partyCode: '',
        branchCode: '',
        vehicleCode: '',
        provinceCode: '',
        cityCode: '',
        countyCode: '',
        linkMan: '',
        name: '',
        phone: '',
        legalPerson: '',
        workCompany: '',
        driverCity: '',
        homeAddress: '',
        driverImg: '',
        identificationNumber: '',
        identificationImg: '',
        identificationBackImg: '',
        workLicense: '',
        workLicenseDueDate: '',
        workLicenseImg: '',
        vehicleClass: '',
        driverLicense: '',
        issuingOrganizations: '',
        driverLicenseFromDate: '',
        driverLicenseDueDate: '',
        driverLicenseImg: '',
        businessLicenseNumber: '',
        businessLicenseImg: '',
        roadPermitNumber: '',
        roadPermitNumberImg: '',
        isFreeze: '',
        workStatus: '',
        freezingAmount: '',
        balance: '',
        oilCard: '',
        etc: '',
        authStatus: '',
        authType: '',
        tintMsg: '',
        authTime: '',
        driverType: '',
        payPassword: '',
        remark: '',
        truckerId: '',
        cardNo: '',
        amapTid: '',
        amapTrid: ''
      }
    }
  },
  created() {
    // 保存空表单对象
    this.emptyForm = JSON.parse(JSON.stringify(this.form))
  },
  methods: {
    // 获取页面信息
    getInfo(code) {
      // 查询到数据之前先展示空表单
      this.form = JSON.parse(JSON.stringify(this.emptyForm))
      request({ url: `/arpa-basic-api/driver/${code}`, method: 'get' }).then(response => {
        this.form = response.data
      })
    }
  }
}
</script>
<style lang="scss" scoped>
    .dialog-footer {
        margin-top: 50px;
    }
</style>
